Optimal. Leaf size=93 \[ -\frac{a+b \tanh ^{-1}(c x)}{e (d+e x)}-\frac{b c \log (d+e x)}{c^2 d^2-e^2}-\frac{b c \log (1-c x)}{2 e (c d+e)}+\frac{b c \log (c x+1)}{2 e (c d-e)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0670172, antiderivative size = 93, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {5926, 706, 31, 633} \[ -\frac{a+b \tanh ^{-1}(c x)}{e (d+e x)}-\frac{b c \log (d+e x)}{c^2 d^2-e^2}-\frac{b c \log (1-c x)}{2 e (c d+e)}+\frac{b c \log (c x+1)}{2 e (c d-e)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5926
Rule 706
Rule 31
Rule 633
Rubi steps
\begin{align*} \int \frac{a+b \tanh ^{-1}(c x)}{(d+e x)^2} \, dx &=-\frac{a+b \tanh ^{-1}(c x)}{e (d+e x)}+\frac{(b c) \int \frac{1}{(d+e x) \left (1-c^2 x^2\right )} \, dx}{e}\\ &=-\frac{a+b \tanh ^{-1}(c x)}{e (d+e x)}-\frac{(b c) \int \frac{-c^2 d+c^2 e x}{1-c^2 x^2} \, dx}{e \left (c^2 d^2-e^2\right )}-\frac{(b c e) \int \frac{1}{d+e x} \, dx}{c^2 d^2-e^2}\\ &=-\frac{a+b \tanh ^{-1}(c x)}{e (d+e x)}-\frac{b c \log (d+e x)}{c^2 d^2-e^2}-\frac{\left (b c^3\right ) \int \frac{1}{-c-c^2 x} \, dx}{2 (c d-e) e}+\frac{\left (b c^3\right ) \int \frac{1}{c-c^2 x} \, dx}{2 e (c d+e)}\\ &=-\frac{a+b \tanh ^{-1}(c x)}{e (d+e x)}-\frac{b c \log (1-c x)}{2 e (c d+e)}+\frac{b c \log (1+c x)}{2 (c d-e) e}-\frac{b c \log (d+e x)}{c^2 d^2-e^2}\\ \end{align*}
Mathematica [A] time = 0.119348, size = 102, normalized size = 1.1 \[ -\frac{a}{e (d+e x)}-\frac{b c \log (d+e x)}{c^2 d^2-e^2}-\frac{b c \log (1-c x)}{2 e (c d+e)}-\frac{b c \log (c x+1)}{2 e (e-c d)}-\frac{b \tanh ^{-1}(c x)}{e (d+e x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.031, size = 114, normalized size = 1.2 \begin{align*} -{\frac{ac}{ \left ( cxe+cd \right ) e}}-{\frac{bc{\it Artanh} \left ( cx \right ) }{ \left ( cxe+cd \right ) e}}-{\frac{bc\ln \left ( cxe+cd \right ) }{ \left ( cd+e \right ) \left ( cd-e \right ) }}-{\frac{bc\ln \left ( cx-1 \right ) }{e \left ( 2\,cd+2\,e \right ) }}+{\frac{bc\ln \left ( cx+1 \right ) }{e \left ( 2\,cd-2\,e \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.967194, size = 134, normalized size = 1.44 \begin{align*} \frac{1}{2} \,{\left (c{\left (\frac{\log \left (c x + 1\right )}{c d e - e^{2}} - \frac{\log \left (c x - 1\right )}{c d e + e^{2}} - \frac{2 \, \log \left (e x + d\right )}{c^{2} d^{2} - e^{2}}\right )} - \frac{2 \, \operatorname{artanh}\left (c x\right )}{e^{2} x + d e}\right )} b - \frac{a}{e^{2} x + d e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.91065, size = 387, normalized size = 4.16 \begin{align*} -\frac{2 \, a c^{2} d^{2} - 2 \, a e^{2} -{\left (b c^{2} d^{2} + b c d e +{\left (b c^{2} d e + b c e^{2}\right )} x\right )} \log \left (c x + 1\right ) +{\left (b c^{2} d^{2} - b c d e +{\left (b c^{2} d e - b c e^{2}\right )} x\right )} \log \left (c x - 1\right ) + 2 \,{\left (b c e^{2} x + b c d e\right )} \log \left (e x + d\right ) +{\left (b c^{2} d^{2} - b e^{2}\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )}{2 \,{\left (c^{2} d^{3} e - d e^{3} +{\left (c^{2} d^{2} e^{2} - e^{4}\right )} x\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 8.62908, size = 782, normalized size = 8.41 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1734, size = 176, normalized size = 1.89 \begin{align*} \frac{1}{2} \,{\left (c{\left (\frac{\log \left ({\left | c - \frac{c d}{x e + d} + \frac{e}{x e + d} \right |}\right )}{c d e^{3} - e^{4}} - \frac{\log \left ({\left | c - \frac{c d}{x e + d} - \frac{e}{x e + d} \right |}\right )}{c d e^{3} + e^{4}}\right )} e^{2} - \frac{e^{\left (-1\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )}{x e + d}\right )} b - \frac{a e^{\left (-1\right )}}{x e + d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]